package org.lewis.core.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 用户信息
 * 
 * @author taiqichao
 * 
 */
@Entity
@Table(name = "LS_USER_INFO")
public class UserInfo implements Serializable{

	private static final long serialVersionUID = 1L;

	/**
	 * 用户id
	 */
	private Long userId;
	/**
	 * 头像图片
	 */
	private String headPic;
	/**
	 * 性别  1:男 2:女
	 */
	private Integer sex;
	/**
	 * 血型
	 */
	private String blood;
	/**
	 * MSN
	 */
	private String msn;
	/**
	 * qq
	 */
	private String qq;
	/**
	 * 所在公司
	 */
	private String company;
	/**
	 * 标签(多个逗号隔开)
	 */
	private String tag;
	/**
	 * 签名
	 */
	private String sign;
	/**
	 * 国家
	 */
	private Long countyId;
	/**
	 * 省份
	 */
	private Long provinceId;
	/**
	 * 城市
	 */
	private Long cityId;
	/**
	 * 区域
	 */
	private Long areaId;

	/**
	 * 大学
	 */
	private String university;
	/**
	 * 生日
	 */
	private String birthday;
	/**
	 * 真实姓名
	 */
	private String realname;

	/**
	 * 身份证号
	 */
	private String idCard;

	/**
	 * 注册来源
	 */
	private String source;
	/**
	 * 注册IP
	 */
	private String regip;
	/**
	 * 注册时间
	 */
	private Date regTime;
	/**
	 * 信息上次修改时间
	 */
	private Date updateTime;

	public UserInfo() {
	}

	@Id
	@Column(name = "USER_ID")
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name = "HEAD_PIC")
	public String getHeadPic() {
		return headPic;
	}

	public void setHeadPic(String headPic) {
		this.headPic = headPic;
	}

	@Column(name = "SEX")
	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	@Column(name = "BLOOD")
	public String getBlood() {
		return blood;
	}

	public void setBlood(String blood) {
		this.blood = blood;
	}

	@Column(name = "MSN")
	public String getMsn() {
		return msn;
	}

	public void setMsn(String msn) {
		this.msn = msn;
	}

	@Column(name = "QQ")
	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	@Column(name = "COMPANY")
	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	@Column(name = "TAG")
	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	@Column(name = "SIGN")
	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	@Column(name = "COUNTY_ID")
	public Long getCountyId() {
		return countyId;
	}

	public void setCountyId(Long countyId) {
		this.countyId = countyId;
	}

	@Column(name = "PROVINCE_ID")
	public Long getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(Long provinceId) {
		this.provinceId = provinceId;
	}

	@Column(name = "CITY_ID")
	public Long getCityId() {
		return cityId;
	}

	public void setCityId(Long cityId) {
		this.cityId = cityId;
	}

	@Column(name = "AREA_ID")
	public Long getAreaId() {
		return areaId;
	}

	public void setAreaId(Long areaId) {
		this.areaId = areaId;
	}

	@Column(name = "UNIVERSITY")
	public String getUniversity() {
		return university;
	}

	public void setUniversity(String university) {
		this.university = university;
	}

	@Column(name = "BIRTHDAY")
	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	@Column(name = "REALNAME")
	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	@Column(name = "SOURCE")
	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	@Column(name = "REG_IP")
	public String getRegip() {
		return regip;
	}

	public void setRegip(String regip) {
		this.regip = regip;
	}

	@Column(name = "REG_TIME")
	public Date getRegTime() {
		return regTime;
	}

	public void setRegTime(Date regTime) {
		this.regTime = regTime;
	}

	@Column(name = "UPDATE_TIME")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "ID_CARD")
	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

}
